package com.syni.mdd.sjb.community.base.controller;

import com.syni.mdd.sjb.common.component.mybatis.community.entity.WxCommunityHelp;
import com.syni.mdd.sjb.community.base.service.WxCommunityHelpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author wangbaitao
 * @version 1.0.0
 * <h>企业微信帮助页面Controller</h>
 * @Date 2021/2/4
 **/
@RestController
@RequestMapping("help")
public class WxCommunityHelpController {
    @Autowired
    private WxCommunityHelpService wxCommunityHelpService;

    /**
     * 创建帮助工单数据
     *
     * @param wxCommunityHelp 工单数据实体
     * @return 操作结果
     */
    @PostMapping("createCommunityHelp")
    public Map<String, Object> createCommunityHelp(@RequestBody WxCommunityHelp wxCommunityHelp) {
        return wxCommunityHelpService.createCommunityHelp(wxCommunityHelp);
    }

}
